package com.mall.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 积分明细对象 t_socre
 *
 * @author ruoyi
 * @date 2025-03-31
 */
@Data
@TableName(value = "t_socre")
@EqualsAndHashCode(callSuper = true)
public class TSocre extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "用户id"
     */
    @Excel(name = "用户id")
    private String userId;
    /**
     * "积分"
     */
    @Excel(name = "积分")
    private BigDecimal score;
    /**
     * "收入类型  1 积分支付(购买商品)  2 抽奖（减少）   3 打卡送积分  4订单交易额积分"
     */
    @Excel(name = "收入类型")
    private String srType;


    /**
     * "1 增加  0 减少"
     */
    @TableField(exist = false)
    private String type;
}
